import request from '@/utils/request'

// 维度模块开始
// 获取科目列表
export function getSubjectList(query) {
  return request({
    url: '/after-exam-score/spartaSubject/list',
    method: 'get',
    params: query
  })
}
// 获取维度列表
export function getDimensionList(query) {
  return request({
    url: '/after-exam-score/thDimensionQuestion/list',
    method: 'get',
    params: query
  })
}

// 新增维度
export function addDimension(query) {
  return request({
    url: '/after-exam-score/thDimensionQuestion',
    method: 'post',
    data: query
  })
}

// 修改维度
export function uploadDimension(query) {
  return request({
    url: '/after-exam-score/thDimensionQuestion',
    method: 'put',
    data: query
  })
}

// 移除维度
export function removeDimension(uuid) {
  return request({
    url: `/after-exam-score/thDimensionQuestion/${uuid}`,
    method: 'delete'
  })
}

// 获取当前维度详细信息
export function getDimensionInfo(uuid) {
  return request({
    url: `/after-exam-score/thDimensionQuestion/${uuid}`,
    method: 'get'
  })
}
// 维度模块结束


// 题型模块开始
// 获取题型列表
export function getQuesTypeList(query) {
  return request({
    url: '/after-exam-score/thQuesTypeAnalysis/list',
    method: 'get',
    params: query
  })
}

// 新增题型
export function addQuesType(query) {
  return request({
    url: '/after-exam-score/thQuesTypeAnalysis',
    method: 'post',
    data: query
  })
}

// 修改题型
export function uploadQuesType(query) {
  return request({
    url: '/after-exam-score/thQuesTypeAnalysis',
    method: 'put',
    data: query
  })
}

// 移除题型
export function removeQuesType(uuid) {
  return request({
    url: `/after-exam-score/thQuesTypeAnalysis/${uuid}`,
    method: 'delete'
  })
}

// 获取当前题型详细信息
export function getQuesTypeInfo(uuid) {
  return request({
    url: `/after-exam-score/thQuesTypeAnalysis/${uuid}`,
    method: 'get'
  })
}
// 题型模块结束
